package com.keyingbo.leran.spring.framkwork.beans;

/**
 * @Auther: KEYB
 * @Date: 2019-4-17 14:02
 * @Description:
 */
public class DemoBeanWrapper {
    private Object wrappedInstance;
    private Class<?> wrappedClass;

    public DemoBeanWrapper(Object wrappedInstance){
        this.wrappedInstance = wrappedInstance;
    }

    public Object getWrappedInstance(){
        return this.wrappedInstance;
    }

    // 返回代理以后的Class
    // 可能会是这个 $Proxy0
    public Class<?> getWrappedClass(){
        return this.wrappedInstance.getClass();
    }
}
